const express = require("express");
const { getGoods, getGoodsById, add, getCart, delete: mydelete } = require("../controller/cartCounter");

const cartRouter = express.Router();

cartRouter.get("/getgoods", getGoods);
cartRouter.get("/getGoodsById", getGoodsById);
cartRouter.post("/add", add);
cartRouter.get("/getCart", getCart);
cartRouter.post("/delete", mydelete);

module.exports = cartRouter;